package com.zbdx.dao;

import com.zbdx.domain.Order;

import java.sql.SQLException;
import java.util.List;

/**
 * TODO 定义用户数据访问层接口
 *
 * @author shengyuee
 * @version 1.0
 * 2024/9/10 14:55
 */
public interface IOrderDao {

    int deleteById(int id) throws SQLException;

    /**
     * 根据Id查询用户
     * @param id
     * @return
     */
    Order selectById(int id) throws SQLException;


    int insert(Order order) throws SQLException;

    /**
     * 查询所有
     * @return
     */
    List<Order> selectAll() throws SQLException;
}
